const Service = require('egg').Service

class ProductImageService extends Service {

  async getproductImage(id) {
    return await this.app.model.ProductImage.findAll({
      where:{
        name_id: id
      },
      attributes: ['id','url'],
    })
  }

}

module.exports = ProductImageService